/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ejb;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.lang.String;
import java.sql.Clob;
/**
 *
 * @author Gemma
 */
@Entity

public class Outfit implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    private String idUtente;
    private String outfit;
    private char[] outfitbase64; 

    public char[] getOutfitbase64() {
        return outfitbase64;
    }

    public void setOutfitbase64(char[] outfitbase64) {
        this.outfitbase64 = outfitbase64;
    }

    public Long getId() {
        return id;
    }
    
     public void setId(Long id) {
        this.id= id;
    }
     
     
    public String getIdUtente() {
        return idUtente;
    }

    public void setIdUtente(String idUtente) {
        this.idUtente = idUtente;
    }

    public String getOutfit() {
        return outfit;
    }

    public void setOutfit(String outfit) {
        this.outfit = outfit;
    }
      
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Outfit)) {
            return false;
        }
        Outfit other = (Outfit) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "ejb.Outfit[ id=" + id + " ]";
    }
    
}
